package com.itheima.service;

import com.itheima.constant.QuoteException;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.CheckItem;
import org.springframework.web.bind.annotation.RequestBody;

public interface CheckItemService {
    public PageResult findPage(QueryPageBean queryPageBean);
    //根据id查询该检查项的具体数据
    Result  findById(Integer id);

    //编辑检查项数据 checkItem
    Result edit(CheckItem checkItem);
    //添加检查项
    Result add(CheckItem checkItem) throws QuoteException;
        //查询所有检查项
    Result findAll();
        //删除检查项
   Result delete(Integer id) ;
}